<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 

class Logout extends MY_Controller {
	
	function index() {
		// destroy session
		$this->session->sess_destroy();
		// redirect to loginPage
		redirect($this->loginPage);
	}
}
?>
